package com.pure.service;

import java.util.List;
import java.util.Map;

import com.pure.db.Collect;
import com.pure.db.Product;
import com.pure.db.User;

public interface MallService {

	Integer addProduct(Product product);

	Integer updateProduct(Product product);

	Integer deleteProduct(Integer id);

	Integer addCollect(Collect collect);

	Integer cancelCollect(Integer id);

	List<Product> getProductByUserId(Integer userId);

	Product getProductById(Integer id);

	Map<String, Object> getProductCollect(Integer productid);

	List<Product> searchProduct(String productname);

	Integer insertBatch(List<Product> list);

	List<Map<String, Object>> searchProductAndSeller(String productname);

	List<User> getProductCollectUserInfo(Integer productid);

	List<Map<String, Object>> getUsrCollect(Integer userid);

}
